export type StorageMode = 'api';

let currentMode: StorageMode = 'api';

export async function initStorageMode(): Promise<void> {
    currentMode = 'api';
}

export async function updateRuntimeStorageMode(mode: StorageMode): Promise<void> {
    currentMode = mode;
}

export function readCurrentStorageMode(): StorageMode {
    return currentMode;
}
